Version:=4.2.4p6
ModuleName:=ntp

Object:=ntp.tgz
ObjectDir:=$(ModuleName)-$(Version)/
ObjcetSource:=$(ModuleName)-$(Version).tar.gz

INSTALL_DIR:=`pwd`

.PHONY:all clean dist_clean

all:$(Object)
	
$(Object):$(ObjcetSource)
	rm -rf usr
	tar -xzf $(ObjcetSource)
	cd $(ObjectDir) && ./configure  
	$(MAKE) -C $(ObjectDir)  
	$(MAKE) -C $(ObjectDir) install DESTDIR=$(INSTALL_DIR)
	find usr/local/lib/ -name *.a -exec rm -rf {} \;
	rm -fr usr/local/man
	$(g_STRIP)
	tar -czf $(Object) usr

clean:
	rm -fr $(Object) usr

dist_clean: clean
	rm -fr $(ObjectDir) $(ObjectSource)

include ../Makefile.Res
